package sifApp.sifAppStatic;

import sifApp.FaceBookSDK.AsyncFacebookRunner;
import sifApp.FaceBookSDK.Facebook;

public class FacebookObjects {
	private static FacebookObjects facebookObjects;
	// Instance of Facebook 
	private Facebook facebook;
	private AsyncFacebookRunner AsyncRunner;
	
	private FacebookObjects(){
		facebook = new Facebook(Global.APP_ID);
		AsyncRunner = new AsyncFacebookRunner(facebook);
	}
	
	public static FacebookObjects getFacebookObjects(){
		if(facebookObjects == null){
			facebookObjects = new FacebookObjects();
		}
		return facebookObjects;
	}

	public Facebook getFacebook() {
		return facebook;
	}

	public AsyncFacebookRunner getAsyncRunner() {
		return AsyncRunner;
	}
	
	
}
